/*
 * ImgPolozkaShFot.java
 *
 * Created on 23. listopad 2002, 15:26
 */

package cz.masa.FotoCAT;

/**
 *
 * @author  Jiri Masnik
 */
public class ImgPolozkaShFot extends javax.swing.JPanel {
    fcaImage im;

    public ImgPolozkaShFot(fcaImage im) {
        this.im = im;
        initComponents();

        if(im.isExifAvail() == false){
            jLabel1.setText("EXIF data not available");
        } else {
            jLabel1.setText("Camera make: " + im.getCamMake());
            jLabel2.setText("Camera model: " + im.getCamModel());

            jLabel3.setText("ISO: " + im.getCamISO());
            String blesk = "no";
            if(im.getCamFlash() > 0) blesk = "yes";
            jLabel4.setText("Flash: " + blesk);
                        
            jLabel5.setText("Exposure program: " + im.getCamExpProgram());
            jLabel6.setText("Aperture value: F" + im.getCamApertVal());
            
            jLabel7.setText("Exposure time: " + im.getCamExposureTime());
            jLabel8.setText("Focal length: " + im.getCamFocalLength() + " mm");
        }
    }
    
    private void initComponents() {//GEN-BEGIN:initComponents
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();

        setLayout(new java.awt.GridLayout(0, 2, 2, 2));

        setBorder(new javax.swing.border.EmptyBorder(new java.awt.Insets(5, 5, 5, 5)));
        add(jLabel1);

        add(jLabel2);

        add(jLabel3);

        add(jLabel4);

        add(jLabel5);

        add(jLabel6);

        add(jLabel7);

        add(jLabel8);

    }//GEN-END:initComponents
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables
    
}
